package com.wuyan.locationdog.ui.my


import android.os.Bundle
import com.arcsoft.commonbase.base.BaseBindingActivity
import com.arcsoft.commonbase.net.ApiService
import com.blankj.utilcode.util.ActivityUtils
import com.wuyan.locationdog.databinding.MyHelpActivityBinding
import com.wuyan.locationdog.ui.X5WebActivity

class MyHelpActivity
    : BaseBindingActivity<MyHelpActivityBinding>() {

    override fun initData() {
        setTitleText("帮助与反馈", rightTitle = "我的反馈") {
            ActivityUtils.startActivity(MyFeedbackListActivity::class.java)

        }

        binding.apply {
            btnFeedback.setOnClickListener {
                val bundle = Bundle()
                bundle.putInt("type", 1)
                ActivityUtils.startActivity(bundle, MyFeedbackActivity::class.java)

            }
            btnProductSuggest.setOnClickListener {
                val bundle = Bundle()
                bundle.putInt("type", 2)
                ActivityUtils.startActivity(bundle, MyFeedbackActivity::class.java)

            }

            btnProductInfo.setOnClickListener {
                X5WebActivity.startAction(mActivity, ApiService.BASE_URL+"html/productIntroduction.html")
            }
        }
    }

}